package com.xinqi.modules.sys.sensitive.word.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.sys.sensitive.word.domain.SensitiveWordEntity;
import com.xinqi.modules.sys.sensitive.word.dto.req.SensitiveWordQueryDTO;
import com.xinqi.modules.sys.sensitive.word.dto.rsp.SensitiveWordResultDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Set;

/**
 * 敏感词管理表数据层
 *
 * @author: wenjie
 * @date: 2023/08/02
 */
@Mapper
public interface SensitiveWordMapper extends SuperMapper<SensitiveWordEntity> {
    Page<SensitiveWordResultDTO> findPage(Page<Object> page, @Param("dto") SensitiveWordQueryDTO query);

    List<SensitiveWordResultDTO> findList(@Param("dto") SensitiveWordQueryDTO query);

    Set<String> findTypes();
}
